package cn.wp.pet.mapper;

import cn.wp.basic.mapper.BaseMapper;
import cn.wp.pet.domain.Pet;
import cn.wp.pet.domain.PetType;

import java.util.List;

public interface PetMapper extends BaseMapper<Pet>{
    /**
     * 批量上架
     * @param ids
     */
    void onSale(List<Long> ids);

    /**
     * 批量下架
     * @param ids
     */
    void offSale(List<Long> ids);

    /**
     * 查询所有的宠物类型类
     * @return
     */
    List<PetType> queryTypeAll();
}
